package com.haiqi.modules.ship.service;

import com.haiqi.common.persistence.dao.AddShipMapper;
import com.haiqi.common.persistence.entity.AddShip;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liuxiayan on 2017/6/20.
 */
@Service
public class AddShipService {
    @Autowired
    private AddShipMapper addShipMapper;

    public List<AddShip> getAllShip(String shipName){
        return addShipMapper.getAllShip(shipName);
    }

    public AddShip getShipName(String mmsi){
        return addShipMapper.getShipName(mmsi);
    }
}
